
import Mock from "mockjs";
import { Local } from "../utils";
class cooperateProtocolEntity {
  fieldsSession = Local('cooperateProtocol-fields', Mock.mock([{
      id:"1",
      cooperative_company_id:"aa保险公司",
      department_id:"bb保险公司",
      contract_name:"abc",
      contract_code:"11002837293",
      contract_files:"abcd",
      type:"财险",
      svalidtime:"2023-6-6 10:32:55",
      evalidtime:"2025-6-6 10:32:55",
      create_time:"2023-6-6 10:32:55",
      update_time:"2023-6-6 10:32:55"
  },{
    id:"2",
    cooperative_company_id:"aa保险公司",
    department_id:"bb保险公司",
    contract_name:"abc",
    contract_code:"11002837293",
    contract_files:"abcd",
    type:"财险",
    svalidtime:"2023-6-6 10:32:55",
    evalidtime:"2025-6-6 10:32:55",
    create_time:"2023-6-6 10:32:55",
    update_time:"2023-6-6 10:32:55"
}
  ]))
  get fields() {
    return this.fieldsSession.get();
  }
  set fields(obj: any) {
    this.fieldsSession.set(obj)
  }
  findAll() {
    return this.fields;
  }
}

export default cooperateProtocolEntity;